import $axios from "../utils/request";

export function cartList(data) {
    return $axios.post('/cart/list',data)
}
export function cartAdd(data) {
    return $axios.post('/cart/add',data)
}
export function doCartUpdate(data) {
    return $axios.post('/cart/updatenum',data)
}
export function doCartDelete(data) {
    return $axios.post('/cart/remove',data)
}
export function doSelectOne(data) {
    return $axios.post('/cart/selectone',data)
}
export function doSelectAll(data) {
    return $axios.post('/cart/selectall',data)
}
export function doDeleteAll(data) {
    return $axios.post('/cart/removeall',data)
}
//推荐
export function doReList(params) {
    return $axios.get('/pro/recommendlist',{params})
}